package cn.keniykey.mc.viewlibrary.reflection;

import java.lang.reflect.Modifier;

public enum EReflectionPermission {
	PRIVATE,PROTECTED,PUBLIC;
	
	public boolean isModifiers(int modifiers) {
		switch(this) {
		case PUBLIC:
			return Modifier.isPublic(modifiers);
		case PRIVATE:
			return Modifier.isPrivate(modifiers);
		case PROTECTED:
			return Modifier.isProtected(modifiers);
		default:
		}
		return false;
	}
}